<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎登录后台管理系统</title>
<link href="/res/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="/res/js/jquery.js"></script>
<script src="/res/js/cloud.js" type="text/javascript"></script>

<script language="javascript">
	$(function(){
      if(parent.location.pathname!="/login"){
    	  if(parent.location.pathname=="/login/chk"){
    		  $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    		  $(window).resize(function(){  
    	      $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
    	      });
    		  return
    	  }else{
       		
       			top.location.pathname="/login";
       			
    	  } 
      }
//   以上解决页面退出bug  
      $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
	  $(window).resize(function(){  
      $('.loginbox').css({'position':'absolute','left':($(window).width()-692)/2});
      });
    
});  

function changeImg(){
   document.getElementById("validateCodeImg").src="/res/ImageValidcode?"+Math.random();
}

	
</script> 

</head>

<body style="background-color:#1c77ac; background-image:url(res/images/light.png); background-repeat:no-repeat; background-position:center top; overflow:hidden;">



    <div id="mainBody">
      <div id="cloud1" class="cloud"></div>
      <div id="cloud2" class="cloud"></div>
    </div>  


<div class="logintop">    
    <span>欢迎登录后台管理界面平台</span>    
    <ul>
    <li><a href="#">回首页</a></li>
    <li><a href="#">帮助</a></li>
    <li><a href="#">关于</a></li>
    </ul>    
    </div>
    
    <div class="loginbody">
    
    <span class="systemlogo"></span> 
       
    <div class="loginbox">
    
    <form action="/login/chk" method="post">
	    <ul>
		    <li>
               <span class="logintip">用　户</span>
		       <input name="name" type="text" class="loginuser" value="${name}" onclickx="JavaScript:this.value=''"/>
		    </li>
		    <li>
		       <span class="logintip">密　码</span>
		       <input name="psw" type="password" class="loginpwd" value="" onclickx="JavaScript:this.value=''"/>
		    </li>
		    <li>
		       <span class="logintip">验证码</span>
		       <input name="imgcode" type="text" class="loginimgcode" maxlength="6" value="" onclickx="JavaScript:this.value=''"/>
		       <img alt="验证码看不清，换一张" src="/res/ImageValidcode" id="validateCodeImg" style="vertical-align: middle;" onclick="changeImg()">
		    </li>		    
		    <li style="text-align: center;margin-left:-50px;">
		       <input name="" type="submit" class="loginbtn" value="登录" />
		       <span style="display: none"><label>
		       <input name="rem" type="checkbox" value="1" checked="checked" 
		       onchange="this.value=this.checked?1:0"/>记住密码</label>
		       <label><a href="#">忘记密码？</a></label>
		       <input type="hidden" name="rem"/></span>
		    </li>
		    <li>${msg}</li>
	    </ul>
    </form>
    
    </div>
     
    </div>
    
    
    

  <div class="loginbm">版权所有  2016  <a href="http://www.bshbsh.com">www.bshbsh.com</a>  百商汇控股</div>

	
    
</body>

</html>
